package com.yjy.demo02;

public class Person {
        private int age;

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            if (this.age>=55){
                System.out.println("合法");
            }else {
                System.out.println("不合法");
            }
            this.age = age;
        }
    }


